export function isConstructor(obj: any): boolean {
    return typeof obj === 'function' && 'prototype' in obj;
}

export function getConstructorName(obj: any): string {
    return Object.getPrototypeOf(obj).constructor.name
}

export function convertToMap(obj) {
  if (typeof obj !== 'object' || obj === null) return obj;
  
  const map = new Map();
  for (const key in obj) {
    map.set(key, obj[key]);
  }
  return map;
}
